class BaseConfig(object):
    """
    基础配置
    """
    DEBUG = True
    TESTING = False
    DB_URL = "mysql://:memory:"
    SECRET_KEY = "BaseConfig"
class ProductionConfig(BaseConfig):
    """
    生产环境
    """
    DB_URL = "mysql://:user@localhost/foo"
    DEBUG = False
    SECRET_KEY = "ProductionConfig"

class DeveloperConfig(BaseConfig):
    """
    开发环境
    """
    DB_URL = "mysql://:user@dev/foo"

    SECRET_KEY = "DeveloperConfig"

class TestingConfig(BaseConfig):
    """
    测试环境
    """
    DB_URL = "mysql://:user@test/foo"
    SECRET_KEY = "TestingConfig"
